@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <div class="row">
                <div class="col-sm-6 b-r">
            <input type="hidden" id="id" value=""/>
                	<input type="file" style="width: 0px;height: 0px;opacity:1; " id="fileChooser" onchange="AttachmentInfoDlg.changeFileInfo()">
                	<#button btnType="success" name="选择文件" icon="fa-folder-open-o" clickFun="AttachmentInfoDlg.openFileChooser()" underline="true"/>
                            <#input id="fileName" readonly="true"  name="文件名" style="width:100px;"/>
                            <#input id="fileSize" readonly="true" name="文件大小" style="width:90px;"  />
                            <#input id="fileType" readonly="true" name="文件类型" style="width:90px;" />
                </div>
                <div class="col-sm-6">
                            <#select id="saveTo" name="保存位置"  >
	                            <option value="filesystem">服务器</option>
	                            <option value="s3">S3</option>
	                            <option value="db">数据库</option>
                            </#select>
                            <#textarea id="description" name="文件描述" rows="4" cols="20" />
                </div>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="AttachmentInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="AttachmentInfoDlg.close()"/>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/system/attachment/attachment_info.js"></script>
@}
